<!DOCTYPE HTML>
<html>
<head>
    <title>我的公寓</title>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
    <style>
        .user-head {
            background: url("<%= global.config.publicPath %>/page/img/page/yi-user-back_02.jpg") no-repeat;
            background-size: 100% 100%;
            position: relative;
            height: 160px;
        }

        .imgRadius {
            width: 4rem;
            margin-left: auto;
            margin-right: auto;
            margin-top: 1rem;
            text-align: center;
            color: #fff;
            font-size: 0.8rem;
        }

        .imgRadius img {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 50%;
        }

        .m-list-name {
            font-size: 0.75rem;
            color: #4b4b4b;
        }
    </style>
</head>
<body ontouchstart="">
<div class="weui_tab">
    <div class="weui_tab_bd">
        <div class="weui_cells weui_cells_access" style="margin-top:0;">
            <a class="weui_cell" href="javascript:;">
                <div class="weui_cell_hd">
                    <img style="width: 4rem;border-radius: 20px;margin-right: 1rem;" src="<%= userData.headimgurl %>"
                         alt=""></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <p name="username"><%= userData.name || userData.nickname %></p>
                    <p style="color: #777777;"><%= userData.phone %></p>
                    <p style="color: #666666;font-size: 80%;"><%= userData.idCard %></p>
                </div>
            </a>
        </div>

        <div class="weui_panel weui_panel_access">
            <div class="weui_panel_bd" style="text-align: center;">
                <div class="weui-row" style="padding: 0.5rem 0;">
                    <a href="order?openId=<%= session.openId %>" class="weui-col-33">
                        <p>我的预约</p>
                        <p class="x-fs-080"><%= data.balanceAmount %></p>
                    </a>
                    <a href="myShortRent?openId=<%= session.openId %>" class="weui-col-33">
                        <p>我的短租</p>
                        <p class="x-fs-080"><%= data.balanceAmount %></p>
                    </a>
                    <a href="contract?openId=<%= session.openId %>" class="weui-col-33">
                        <p>我的合同</p>
                        <p class="x-fs-080"><%= data.bonus %></p>
                    </a>
                    <!-- <a href="bill?openId=<%= session.openId %>" class="weui-col-25">
                        <p>我的账单</p>
                        <p class="x-fs-080"><%= data.billQuantity %></p>
                    </a>-->
                </div>
            </div>
        </div>

        <% if(data.toPayAmount) { %>
        <div class="weui_panel weui_panel_access">
            <a class="weui_panel_ft" href="toPayBill?openId=<%= session.openId %>">
                <span style="font-size: 0.65rem;color: #787878;">应付账单总额</span>
                <span style="font-size: 0.85rem;color: #f94a4f;">￥<%= data.toPayAmount %></span>
                <span class="pull-right" style="margin-right: 12px;font-size: 13px;margin-top: 5px;">查看并付款</span>
            </a>
        </div>
        <% } %>

        <div class="weui_cells weui_cells_access">
            <!--<a class="weui_cell" href="javascript:$.alert('暂无优惠券信息');">-->
            <!--<div class="weui_cell_hd">-->
            <!--<i class="fa fa-gift"></i>-->
            <!--</div>-->
            <!--<div class="weui_cell_bd weui_cell_primary m-list-name">-->
            <!--<p>我的优惠券</p>-->
            <!--</div>-->
            <!--<div class="weui_cell_ft"></div>-->
            <!--</a>-->
            <a class="weui_cell" href="bindAccount?id=<%= userData.id %>">
                <div class="weui_cell_hd">
                    <i class="fa fa-edit"></i>
                </div>
                <div class="weui_cell_bd weui_cell_primary m-list-name">
                    <p>资料修改</p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
            <a class="weui_cell" href="rule?id=5d76558d7690404e983ad377d1138a5e&openId=<%= session.openId %>">
                <div class="weui_cell_hd">
                    <i class="fa fa-rss"></i>
                </div>
                <div class="weui_cell_bd weui_cell_primary m-list-name">
                    <p>入住须知</p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
            <!--<a class="weui_cell" href="repairList?openId=<%= session.openId %>">
                <div class="weui_cell_hd">
                    <i class="fa fa-history"></i>
                </div>
                <div class="weui_cell_bd weui_cell_primary m-list-name">
                    <p>我的报修历史</p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>-->
            <!--<a class="weui_cell" href="repairList?openId=<%= session.openId %>">
                <div class="weui_cell_hd">
                    <i class="fa fa-history"></i>
                </div>
                <div class="weui_cell_bd weui_cell_primary m-list-name">
                    <p>我的保洁历史</p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>-->
            <a class="weui_cell" href="idCardUpload?id=<%= userData.id %>">
                <div class="weui_cell_hd">
                    <i class="fa fa-id-card"></i>
                </div>
                <div class="weui_cell_bd weui_cell_primary m-list-name">
                    <p>身份证上传</p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
        </div>

    </div>
    <div class="weui_tabbar">
        <a href="index?openId=<%= session.openId %>" class="weui_tabbar_item">
            <div class="weui_tabbar_icon">
                <img src="<%= global.config.publicPath %>/page/images/nav11.png" alt="">
            </div>
            <p class="weui_tabbar_label" style="color: #c5c5c5">我要租房</p>
        </a>
        <a href="news?openId=<%= session.openId %>" class="weui_tabbar_item">
            <div class="weui_tabbar_icon">
                <img src="<%= global.config.publicPath %>/page/images/nav22.png" alt="">
            </div>
            <p class="weui_tabbar_label" style="color: #c5c5c5">科寓动态</p>
        </a>
        <a href="account?openId=<%= session.openId %>" class="weui_tabbar_item weui_bar_item_on">
            <div class="weui_tabbar_icon">
                <img src="<%= global.config.publicPath %>/page/images/nav3.png" alt="">
            </div>
            <p class="weui_tabbar_label" style="color: #0f1a5b">我</p>
        </a>
    </div>
</div>
<% include common/footer.ejs %>
</body>
</html>